package com.sunda.spmsorder.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 车间请购单
 * </p>
 *
 * @author Wayne
 * @since 2021-02-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("ORDER_WORKSHOP")
@ApiModel(value="OrderWorkshop对象", description="车间请购单")
public class OrderWorkshop implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "java生成唯一ID，用于关联请购单明细表")
    @TableField("UUID")
    private String uuid;

    @ApiModelProperty(value = "车间请购单号")
    @TableId("SPMS_WS_ID")
    private String spmsWsId;

    @ApiModelProperty(value = "紧急程度")
    @TableField("URGENCY")
    private String urgency;

    @ApiModelProperty(value = "提交日期")
    @TableField("APPLICATION_DATE")
    private String applicationDate;

    @ApiModelProperty(value = "要求到货日期")
    @TableField("DATE_REQUIRED")
    private String dateRequired;

    @ApiModelProperty(value = "标题")
    @TableField("SUBJECT")
    private String subject;

    @ApiModelProperty(value = "员工工号")
    @TableField("WORK_CODE")
    private String userId;

    @ApiModelProperty(value = "员工姓名")
    @TableField("LAST_NAME")
    private String lastName;

    @ApiModelProperty(value = "工厂代码")
    @TableField("WERKS")
    private String werks;

    @ApiModelProperty(value = "车间编号")
    @TableField("WORKSHOP_CODE")
    private String workshopCode;

    @ApiModelProperty(value = "申请原因")
    @TableField("JUSTIFICATION")
    private String justification;

    @ApiModelProperty(value = "项目号")
    @TableField("PROJECT_CODE")
    private String projectCode;

    @ApiModelProperty(value = "项目类型,0-洗衣粉厂 1-五金加工厂 2-磁砖厂 3-肯尼亚砖厂 4-加纳砖厂 5-坦桑砖厂 6-科特五金厂 7-坦桑制钉厂 8-塞内加尔项目组 9-纸尿裤厂 10-加纳后山项目 11-分公司贸易 12-莫桑比克砖厂 13-赞比亚陶瓷厂")
    @TableField("PROJECT_TYPE")
    private String projectType;

    @ApiModelProperty(value = "项目状态，0已投产；1未投产")
    @TableField("PROJECT_STATUS")
    private String projectStatus;

    @ApiModelProperty(value = "车间请购单SPMS状态")
    @TableField("STATUS")
    private String status;

    @ApiModelProperty(value = "创建日期，前端传入格式:yyyy-mm-dd")
    @TableField("CREATE_DATE")
    private String createDate;

    @ApiModelProperty(value = "单据更新系统时间戳，自动生成")
    @TableField("UPDATE_TIME")
    private Date updateTime;

    @ApiModelProperty(value = "单据创建系统时间戳,自动生成")
    @TableField("CREATE_TIME")
    private Date createTime;

    @ApiModelProperty(value = "采购地点")
    @TableField("PURCHASE_LOCATION")
    private String purchaseLocation;

}
